<div id="content">

	<h1>Class Syllabus</h1>

	<div style="margin:0 0px 0 0px;">
		<iframe src="<%= url_for(:controller => 'syllabus', :action => 'course_material', :id => @course_material.id) %>" width="718px" height="600" ></iframe>
	</div>
	
	<br />
	
	<% if(session[:loginrole] == "Admin") %>
		<% form_for :course_material, :url => {:controller=>"syllabus", :action => "add_syllabus"}, :html => { :multipart => true } do |form| -%>
			<div style="border: dashed 1px #CCC; padding:3px 15px;">
			<h3>Upload Syllabus</h3>
				        <table>
					    <tr>
					    <td align="right">File:</td> <td><%= form.file_field("uploaded_document") %></td>
					    <td><%= submit_tag("Upload file" ) %></td>
					    </tr>
					    </table>
			</div>
		<% end %>
	<% end %>

</div>